<?php

namespace app\common\lib\redEnvelopes;

interface RedEnvelopes
{
    //public function generate();

    /**
     * 检查库存
     */
    public function checkStock($red_envelopes_id, $user_id);

    /**
     * 抢红包
     */
    public function rob($red_envelopes_id, $user_id);
}